<template>
	<view>
		<van-tabs @change="changeTab" color="#1152FC" animated :lazy-render="false" :active="active">
			<van-tab :title-style="active == 0 ? 'color: #1152FC': ''" title="耗材管理">
				1
			</van-tab>
			<van-tab :title-style="active == 1 ? 'color: #1152FC': ''" title="资产管理">
				2
			</van-tab>
		</van-tabs>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				active: 0
			}
		},
		methods: {
			changeTab(name, title) {
				this.active = name.target.index
			},
		}
	}
</script>

<style>

</style>
